package com.young.springdemo.service.visitorpattern;

//抽象访问者
public abstract class Department {

    //声明一组重载的方法,用于访问不同类型的具体元素
    public abstract void visit(FulltimeEmployee fulltimeEmployee);
    public abstract void visit(ParttimeEmployee parttimeEmployee);


}
